package org.ccay.excel.importer.validate;

import org.ccay.excel.meta.NamedElement;

/**
 * Validator的定义。
 * 	
 * @author chaowangbang
 * @since Mar 19, 2012
 */
public class ValidatorDef extends NamedElement {
	
	/**
	 * 验证器的实现类
	 */
	private String className;
	
	/**
	 * 国际化消息主键
	 */
	private String messageKey;
	
	/**
	 * @param name
	 */
	public ValidatorDef(String name) {
		super(name);
	}
	
	/** 设置验证器的类名	
	 * @author chaowangbang
	 * @since Mar 20, 2012
	 * @param className
	 */
	public void setClassName(String className) {
		this.className = className;
	}
	
	/** 获取验证器的类名	
	 * @author chaowangbang
	 * @since Mar 20, 2012
	 * @return
	 */
	public String getClassName() {
		return this.className;
	}

	/**
	 * @return
	 */
	public String getMessageKey() {
		return messageKey;
	}

	/**
	 * @param messageKey
	 */
	public void setMessageKey(String messageKey) {
		this.messageKey = messageKey;
	}

	/* (non-Javadoc)
	 * @see org.ccay.excel.meta.NamedElement#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		return super.equals(obj);
	}

	/* (non-Javadoc)
	 * @see org.ccay.excel.meta.NamedElement#hashCode()
	 */
	@Override
	public int hashCode() {
		return super.hashCode();
	}

}
